Function |new_access
work/access::|new_access
Usage
|new_access(ip, port, remote_key, self_key)
Parameters
↳ ip: Vec<Ip> (net/ip::Ip)
↳ port: u16
↳ remote_key: Secret<string>
↳ self_key: Secret<string>
Return
↴ Access
Build an Access value from explicit connection parameters.
ip: list of IP addresses the worker can be reached on.port: TCP port the worker listens on.remote_key: UUID the worker expects to receive (melodium dist --recv-key-file), such as"env:MELODIUM_SECRET_DIST_SEND_KEY".self_key: UUID the worker sends back (melodium dist --send-key-file), such as"env:MELODIUM_SECRET_DIST_RECV_KEY".
The keys are revealed when connecting, where malformed UUIDs make distrib::start fail.